/* 智驭安行登录页面样式 */

/* 全局样式重置 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	position: relative;
	overflow-x: hidden;
}

/* 背景装饰 */
body::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="30" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="90" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
	animation: float 20s ease-in-out infinite;
	pointer-events: none;
}

@keyframes float {

	0%,
	100% {
		transform: translateY(0px) rotate(0deg);
	}

	50% {
		transform: translateY(-20px) rotate(180deg);
	}
}

/* 主容器 */
.login-container {
	display: flex;
	width: 100%;
	max-width: 1300px;
	min-height: 500px;
	background: white;
	border-radius: 16px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
	overflow: hidden;
	position: relative;
	z-index: 1;
	animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* 左侧横幅 */
.login-banner {
	flex: 1;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	color: white;
	padding: 40px 60px;
	position: relative;
	overflow: hidden;
}

.login-banner::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,800 1000,1000"/></svg>') no-repeat;
	background-size: cover;
}

.banner-content {
	position: relative;
	z-index: 2;
	text-align: center;
}

.logo-container {
	margin-bottom: 30px;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 120px;
}

.logo-container img {
	height: 100px;
	max-width: 220px;
	width: auto;
	object-fit: contain;
	transition: transform 0.3s;
}

.logo-container img:hover {
	transform: scale(1.08);
}

.banner-title {
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 12px;
	line-height: 1.2;
	letter-spacing: 1px;
	white-space: nowrap;
}

.banner-subtitle {
	font-size: 16px;
	opacity: 0.9;
	margin-bottom: 30px;
	font-weight: 300;
}

.banner-features {
	list-style: none;
	text-align: left;
}

.banner-features li {
	padding: 8px 0;
	font-size: 14px;
	opacity: 0.8;
	position: relative;
	padding-left: 20px;
}

.banner-features li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: #4ade80;
	font-weight: bold;
}

/* 右侧表单 */
.login-form {
	flex: 1;
	padding: 50px 80px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: #fafbfc;
	position: relative;
}

.form-header {
	text-align: center;
	margin-bottom: 40px;
}

.form-title {
	font-size: 24px;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 8px;
}

.form-subtitle {
	font-size: 14px;
	color: #6b7280;
}

.login-form-container {
	width: 100%;
}

/* 表单样式增强 */
.form-item {
	margin-bottom: 24px;
}

.form-item.has-error .el-input__inner {
	border-color: #f56c6c;
	box-shadow: 0 0 0 2px rgba(245, 108, 108, 0.2);
}

.el-input {
	position: relative;
}

.el-input__inner {
	height: 48px;
	border-radius: 8px;
	border: 2px solid #e5e7eb;
	font-size: 14px;
	transition: all 0.3s ease;
	background: white;
}

.el-input__inner:focus {
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.el-input__inner::placeholder {
	color: #9ca3af;
}

.el-input__prefix {
	color: #6b7280;
}

/* 记住登录选项 */
.login-options {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	font-size: 14px;
}

.remember-me {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #6b7280;
}

.forgot-password {
	color: #667eea;
	text-decoration: none;
	transition: color 0.3s ease;
}

.forgot-password:hover {
	color: #5a67d8;
	text-decoration: underline;
}

/* 登录按钮 */
.login-button {
	width: 100%;
	height: 48px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
	transition: all 0.3s cubic-bezier(.4,1.4,.6,1), box-shadow 0.3s;
	margin-bottom: 20px;
	box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
	letter-spacing: 1px;
	position: relative;
	overflow: hidden;
}

.login-button::after {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: linear-gradient(120deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
	pointer-events: none;
	transition: opacity 0.3s;
	opacity: 0.7;
	border-radius: 8px;
}

.login-button:hover:not(:disabled) {
	transform: scale(1.04);
	box-shadow: 0 8px 32px rgba(102, 126, 234, 0.25);
	background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.login-button:active:not(:disabled) {
	transform: scale(0.98);
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.18);
}

.login-button:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* 其他链接 */
.other-actions {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid #e5e7eb;
}

.other-actions p {
	color: #6b7280;
	font-size: 14px;
	margin-bottom: 12px;
}

.action-links {
	display: flex;
	justify-content: center;
	gap: 24px;
}

.action-links a {
	color: #667eea;
	text-decoration: none;
	font-size: 14px;
	transition: color 0.3s ease;
}

.action-links a:hover {
	color: #5a67d8;
	text-decoration: underline;
}

/* 版权信息 */
.copyright {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 12px;
	color: #9ca3af;
	text-align: center;
	white-space: nowrap;
}

/* 错误提示样式 */
.error-message {
	color: #f56c6c;
	font-size: 12px;
	margin-top: 4px;
	display: flex;
	align-items: center;
	gap: 4px;
}

/* 加载状态 */
.loading-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	border-radius: 16px;
}

.loading-content {
	text-align: center;
	color: #667eea;
}

.loading-spinner {
	font-size: 24px;
	animation: spin 1s linear infinite;
	margin-bottom: 8px;
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

/* 动画效果 */
.fade-enter-active,
.fade-leave-active {
	transition: opacity 0.3s ease;
}

.fade-enter,
.fade-leave-to {
	opacity: 0;
}

/* 自定义复选框 */
.custom-checkbox {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	user-select: none;
}

.custom-checkbox input {
	display: none;
}

.custom-checkbox .checkmark {
	width: 16px;
	height: 16px;
	border: 2px solid #d1d5db;
	border-radius: 3px;
	margin-right: 8px;
	position: relative;
	transition: all 0.3s ease;
}

.custom-checkbox input:checked+.checkmark {
	background: #667eea;
	border-color: #667eea;
}

.custom-checkbox input:checked+.checkmark::after {
	content: '✓';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: white;
	font-size: 10px;
	font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
	body {
		padding: 10px;
	}

	.login-container {
		flex-direction: column;
		max-width: 400px;
		min-height: auto;
	}

	.login-banner {
		padding: 30px 20px;
		min-height: 200px;
	}

	.banner-title {
		font-size: 24px;
	}

	.banner-subtitle {
		font-size: 14px;
	}

	.banner-features {
		display: none;
	}

	.login-form {
		padding: 30px 20px;
	}

	.form-title {
		font-size: 20px;
	}

	.copyright {
		position: static;
		transform: none;
		margin-top: 20px;
	}
}

@media (max-width: 480px) {
	.login-container {
		margin: 0;
		border-radius: 0;
		min-height: 100vh;
	}

	.login-form {
		padding: 20px;
	}

	.action-links {
		flex-direction: column;
		gap: 12px;
	}
}

/* Element UI 样式覆盖 */
.el-form-item__error {
	color: #f56c6c;
	font-size: 12px;
	padding-top: 4px;
}

.el-button--primary {
	background-color: #667eea;
	border-color: #667eea;
}

.el-button--primary:hover {
	background-color: #5a67d8;
	border-color: #5a67d8;
}

.el-button--primary:focus {
	background-color: #5a67d8;
	border-color: #5a67d8;
}

/* 消息提示样式优化 */
.el-message {
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.el-message--success {
	background-color: #f0f9ff;
	border-color: #10b981;
	color: #065f46;
}

.el-message--error {
	background-color: #fef2f2;
	border-color: #f87171;
	color: #991b1b;
}

.el-message--info {
	background-color: #f0f9ff;
	border-color: #3b82f6;
	color: #1e3a8a;
}

.register-row {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
	font-size: 14px;
	color: #6b7280;
}

.register-row a {
	color: #667eea;
	text-decoration: none;
	margin-left: 4px;
	transition: color 0.3s;
	font-weight: 500;
}

.register-row a:hover {
	color: #5a67d8;
	text-decoration: underline;
}